package com.smth.infobox.compoments;

import android.app.Activity;
import android.graphics.Bitmap;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class BaseWebViewClient extends WebViewClient {

	private Activity activity;

	public BaseWebViewClient(Activity activity) {
		super();
		this.activity = activity;
	}

	public void onPageFinished(WebView view, String url) {
		activity.setProgressBarIndeterminateVisibility(false);
	}

	public void onPageStarted(WebView view, String url, Bitmap favicon) {
		activity.setProgressBarIndeterminateVisibility(true);
		view.setWebViewClient(this);
	}
}
